<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>共识一</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	</head>
	<link rel="stylesheet" href="/zc/css/style.css" />
	<link rel="stylesheet" href="/zc/css/index.css" />
	<link rel="stylesheet" href="/zc/css/login.css" />
	<link rel="stylesheet" href="/zc/css/center_wddd.css" />
	<link href="/zc/css/footer.css" rel="stylesheet">
	<script src="/zc/js/flexible.js"></script>
	<script src="/zc/js/flexible_css.js"></script>
	<script src="/zc/js/template.js"></script>
	<script src="/zc/js/jquery.min.js"></script>
	<script src="/zc/js/unslider.min.js"></script>
	<script src="/zc/js/foot_bar.js"></script>
	<style>
		.bzcx{
			width: 2rem;
			height: 1rem;
			position: absolute;
			right: 0;
			top: 0;
			text-align: center;
			background: #fff;
			border: 0;
			font-size: .35rem;
			color: #333;
		}
		.gs{
			width: 90%;
			margin: auto;
			margin-top: .4rem;
			overflow: hidden;
			height: 1rem;
			border-bottom: 1px solid #f1f1f1;
		}
		.gs_lt,.gs_rt{
			float: left;
			font-size: .4rem;
			line-height: 1rem;
			color: #333;
		}
		.gs_rt{
			float: right;
		}
	</style>
	
	<body>
		<div class="header">
			<span>共识一</span>
			<a href="javascript:history.go(-1)" class="return"></a>
			<input class="bzcx" type="button" value="本周查询" onclick="location.href='/index/member/center_wdyqm_gsy_gsyxq.html'" />
		</div>
		<div style="height: 1rem;"></div>
		<div class="tpl">

		</div>
		
		<script type="text/html" id="tpl">
			<div class="gs">
					<p class="gs_lt">共识人数</p>
					<p class="gs_rt">{{info.count}}人</p>
				</div>
				
				<div class="gs">
					<p class="gs_lt">交易业绩</p>
					<p class="gs_rt">{{info.allnum}}</span></p>
				</div>
				
				<div class="gs">
					<p class="gs_lt">存量业绩</p>
					<p class="gs_rt">{{info.bonus_all}}</span></p>
				</div>
				
				<div class="gs">
					<p class="gs_lt">手续费收入</p>
					<p class="gs_rt">{{info.fee}}</span></p>
				</div>
		</script>
		<script>
			$(function () {
				var status = true;
				var param = {
					page:1,
					limit:10,
					around:1
				}
				function loadList(){
					$.ajax({
						type: "POST",
						url: "/index/Usercenter/lrdetail",
						data: param,
						dataType: "json",
						success: function (res) {
							if(res.code==0){
								$('.tpl').append(template("tpl", res));
								if(!res.info || res.info.length<param.limit){
                                status = false;
                            } 
							}
						}
					});
				}
				loadList();
				 // 下拉加载
				 $(window).off("scroll").on("scroll", function(e){
                var totalheight = parseFloat($(this).height()) + parseFloat($(this).scrollTop());
                if (($(document).height()<=totalheight && status)){
                    status = true;
                    param.page++;
                    loadList();
                }
            });
			});
		</script>
	</body>
	
	
	
	
</html>
